#include <stdio.h>

#include "SHList.h"

int main()
{
    Node* head;
    SHListInit(&head);
    SHListPushBack(head,1);
    SHListPushFront(head,0);
    printf("%d\n",SHListSize(head));
    SHListPrint(head);

    SHListPopFront(head);
    printf("%d\n",SHListSize(head));
    SHListPrint(head);

    SHListPushBack(head,2);
    SHListPushBack(head,3);
    SHListPushBack(head,4);
    SHListPushBack(head,4);
    SHListPushBack(head,5);
    SHListPushBack(head,6);
    SHListPopBack(head);
    printf("%d\n",SHListSize(head));
    SHListPrint(head);

    SHListInsert(SHListFind(head,2),8);
    SHListErase(SHListFind(head,4));
    printf("%d\n",SHListSize(head));
    SHListPrint(head);

    SHListDestroy(&head);
}
